home *** CD-ROM | disk | FTP | other *** search
- /*
- File: StaticLetter.h
-
- Copyright: © 1991-1994 by Apple Computer, Inc.
- All rights reserved.
-
- Part of the AOCE Sample SMSAM Package. Consult the license
- which came with this software for your specific legal rights.
-
- */
-
-
-
- #ifndef __STATICLETTER__
- #define __STATICLETTER__
-
- #ifndef __LETTER__
- #include "Letter.h"
- #endif
-
- #ifndef __OCEOBJECTS__
- #include "OCEObjects.h"
- #endif
-
- #pragma push
- #pragma segment StaticLetter
-
- /***********************************|****************************************/
-
- class TStaticLetter : public TLetter
- {
- public: TStaticLetter (
- TRecipient* to,
- TRecipient* from,
- const TRString& subject,
- const TRString& content );
-
- TStaticLetter (
- TRecipient* to,
- TRecipient* from,
- const TRString& subject,
- const TRString& content,
- const ResType templateType,
- short templateID );
-
- virtual ~TStaticLetter();
-
- virtual Boolean LoadTemplate ( const ResType templateType, short templateID );
- virtual Boolean SetTemplateItem ( unsigned short zeroBasedItemIndex, const char* substituteData );
-
- virtual Boolean GetLetterID (BLJLetterID&) const;
- virtual Boolean GetReplyID (BLJLetterID&) const;
- virtual Boolean GetConversationID (BLJLetterID&) const;
- virtual Boolean GetSendTimeStamp (BLJTime& sendTime) const;
- virtual Boolean GetLetterPriority (TLetter::LetterPriority& priority) const;
- virtual Boolean GetSubject (RString& subject) const;
- virtual Boolean IsLetterAutoForwarded (Boolean& yesItIs) const;
- virtual Boolean IsLetterAutoReply (Boolean& yesItIs) const;
- virtual Boolean CanLetterBeAutoForwarded (Boolean& yesItCan) const;
-
- virtual unsigned short GetRecipientCount(RecipientTypeSet recipientType) const;
- virtual TRecipient* GetRecipient (RecipientTypeSet recipientType, unsigned short index) const;
- virtual Boolean GetRecipientStatus(RecipientTypeSet, unsigned short index, RecipientStatusSet&) const;
- virtual Boolean SetRecipientStatus(RecipientTypeSet, unsigned short index, RecipientStatusSet);
- virtual unsigned short GetUnknownRecipientCount() const;
-
- virtual Boolean DeliveryReceiptRequested(Boolean &yesItIs) const;
- virtual Boolean NonDeliveryReportRequested (Boolean& yesItIs) const;
-
- virtual unsigned long GetContentTypeCount ( ) const;
- virtual OSType GetContentType ( unsigned long i ) const;
-
- virtual unsigned long GetSegmentCount( OSType contentType ) const;
- virtual Boolean GetSegmentData( OSType contentType, unsigned long index, unsigned long offset,void *data, long& maximumDataSize ) const;
- virtual Boolean GetSegmentInfo( OSType contentType, unsigned long index, BLJLetterBlockType& blockType, long& blockLength ) const;
-
- virtual TVirtualFolder* GetEnclosuresFolder() const { return nil; };
- virtual unsigned short GetNestedLetterCount() const { return 0; };
- virtual TLetter* GetNestedLetter(unsigned short) const { return nil; };
-
- private: TRecipient* fTo;
- TRecipient* fFrom;
- TRString fSubject;
- TRString fContent;
- Handle fTemplate;
- };
-
- /***********************************|****************************************/
-
- #pragma pop
-
- #endif // __STATICLETTER__
-